package kevin.socketDemo;

import java.io.Serializable;

public class UserData implements  Serializable{


    private static final long serialVersionUID = 7174528110279419472L;
    private int userId;
    private  String name;


    public UserData(int userId, String name) {
        this.userId = userId;
        this.name = name;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    @Override
    public String toString() {
        return "UserData{" +
                "userId=" + userId +
                ", name='" + name + '\'' +
                '}';
    }
}
